import java.util.*;
/**
 * The class, which extend the super class Publication, represent a Book or a Collection Chapter.
 * 
 */
public class BoCChapter extends Publications{
    
	private String bookTitle;
	
	/**
     * Construct a BoCChapter object with the specified list of author, title, 
     * year of publication, ISSN code, ISBN code and book title.
     * The ISSN code must be a numeric string of 8 character.
     * The ISBN code must be a numeric string of 13 character
     * ISSN and ISBN code can also be initialized at null.
     * 					 
     * @param theAuthors the list of author object.
     * @param aTitle the title of Book or Collection.
     * @param aYear the year of publication.
     * @param aIssn the ISSN code. 
     * @param aIsbn the ISBN code.
     * @param aBookTitle the title of chapter.
     */
    public BoCChapter(List<Author> theAuthors, String aTitle, int aYear,String aIssn, String aIsbn, String aBookTitle){
       super(theAuthors, aTitle, aYear, aIssn, aIsbn);
       if (!aBookTitle.equals(""))
    	   this.bookTitle = aBookTitle;
       else 
    	   throw new IllegalArgumentException();
    }
    /**
     * Returns the title of the chapter.
     * 
     * @return the title.
     */
	public String getBookTitle() {
		return bookTitle;
	}
    @Override
    /**
     * Returns the String representation of the Book or Collection Chapter.
	 * 
	 * @return the string representation.
     */
	public String toString() {
		return "BoCChapter [bookTitle=" + bookTitle +" "+ super.toString()+"]";
	}
    
}
